package com.yaoayao.mall.order.service;

import com.yaoayao.mall.model.enums.ProcessStatus;
import com.yaoayao.mall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: peiyao
 * @date: 2024/4/17 20:46
 * @description:
 */
public interface OrderInfoService {
    boolean hasStock(Long skuId, Integer skuNum);

    Long submitOrder(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, ProcessStatus processStatus);

    void sendOrderStatus(Long orderId);

    List<Map> orderSplit1(Long orderId, String wareSkuMap);
}
